'''
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with self work for additional information
 * regarding copyright ownership.  The ASF licenses self file
 * to you under the Apache License, Version 2.0 (the
 * "License") you may not use self file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
'''
from base.rdf.Bag import Bag
from base.rdf.impl.ContainerImpl import ContainerImpl

#import org.apache.jena.enhanced.*;
#import org.apache.jena.graph.*;
#import org.apache.jena.rdf.model.*;

'''
 * An implementation of Bag
'''
class BagImpl(ContainerImpl, Bag):

    # @SuppressWarnings("hiding")
    # final static public Implementation factory = Implementation():
    #     # @Override
    # # param Node n, EnhGraph eg
    # # result boolean
    # def canWrap(self, n, eg):
    #         return True
    #
    #
    #     # @Override
    # # param Node n, EnhGraph eg
    # # result EnhNode
    # def wrap(self, n, eg):
    #         return BagImpl(n, eg)
        
    

    '''
     * Creates BagMem
    '''
    # param ModelCom model
    def __init__(self, model):
        super().__init__(model)

    # TODO 以下3个方法后续需要修正
    # param String uri, ModelCom model
    def initWithUriAndModelCom(self, uri, model):
        super().initWithUriAndModelCom(uri, model)

    # param Resource r, ModelCom m
    def initWithResourceAndModelCom(self, r, m):
        super().initWithResourceAndModelCom(r, m)

    # param Node n, EnhGraph g
    def initWithNodeAndEnhGraph(self, n, g):
        super().initWithNodeAndEnhGraph(n, g)
    



